Page 87 - 2629_Devagiri_C-8
P. 87
FLOW OF CONTROL
6 IN PYTHON
PRIMARY PREVIEW
Python Iterative Statements
The Infinite Loop
Jump Statements
Some More Programs
Hey AIRO, how does a computer make decisions?
The computer uses conditional statements to check if
something is true or false and then decides what to do.
So, it’s like asking a question
and doing something if it’s true?
Exactly! Loops help the computer
repeat actions until a condition is met.
So, loops make the computer repeat tasks?
Yes! We will explore both in this chapter.
85
Flow of Control in Python

